function pick(obj = {}, keys = []) {
    let result = {};
    keys.forEach(v => {
        if (v in obj) result[v] = obj[v];
    })
    return result;
}
export default pick;